package cn.edu.sgu.www.mhxysy.entity.xingyin;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 星印
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("xingyin")
public class Xingyin implements Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value = "ID")
	private String id;

	/**
	 * 评分
	 */
	@ApiModelProperty(value = "评分")
	private Integer score;

	/**
	 * 打造者
	 */
	@ApiModelProperty(value = "打造者")
	private String forger;

	/**
	 * 耐久度
	 */
	@ApiModelProperty(value = "耐久度")
	private Integer durability;

	/**
	 * 穿戴状态
	 * 0-未穿戴；1-穿戴中
	 */
	@ApiModelProperty(value = "穿戴状态")
	private Integer wearStatus;

	/**
	 * 角色ID
	 */
	@ApiModelProperty(value = "角色ID")
	private String roleId;

	/**
	 * 星印特效ID
	 */
	@ApiModelProperty(value = "星印特效ID")
	private Integer texiaoId;

	/**
	 * 星印类型ID
	 */
	@ApiModelProperty(value = "星印类型ID")
	private Integer categoryId;

	public String uuid() {
		return IdentifierPrefixes.PREFIX_JSXY + StringUtils.uuid();
	}

}